package com.phone.store.form;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/8/1 2:18 下午
 */
@NoArgsConstructor
@Data
public class OrderForm {


    /**
     * name : 张三
     * tel : 15622850050
     * address : 广东省深圳市罗湖区科技路123号456室
     * specsId : 1
     * quantity : 1
     */

    @NotEmpty(message = "姓名不能为空")
    private String name;

    @NotEmpty(message = "电话不能为空")
    private String tel;

    @NotEmpty(message = "地址不能为空")
    private String address;

    @NotNull(message = "规格不能为空")
    private Integer specsId;

    @NotNull(message = "数量不能为空")
    private Integer quantity;
}
